package com.pzhu.mapper;

import com.pzhu.pojo.Brand;
import com.sun.xml.internal.bind.v2.model.core.ID;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Yancy xiao
 * @create 2023-03-06 8:45
 */
public interface BrandMapper {
    List<Brand> selectAll();

    List<Brand> selectById(int i);

    Brand selectByName(String i);

    //  List<Brand> selectByCondition(@Param("status") int status, @Param("brandName") String brandName, @Param("companyName") String companyName);
    List<Brand> selectByCondition(Brand brand);

    List<Brand> selectBySingerCondition(Brand brand);

    void add(Brand brand);

    void update(Brand brand);

    void deleteById(int id);

    void deleleByIds(@Param("ids") int[]ids);
}